package com.yuwj.chinaa.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yuwj.chinaa.R;
import com.yuwj.chinaa.base.BaseActivity;
import com.yuwj.chinaa.util.ClipboardUtil;
import com.yuwj.chinaa.util.ToastUtil;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 联系我们界面
 */
public class AccountContactUsActivity extends BaseActivity {


    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.iv_qrcode)
    ImageView ivQrcode;
    @BindView(R.id.tv_qrcode)
    TextView tvQrcode;
    @BindView(R.id.tv_channel)
    TextView tvChannel;
    @BindView(R.id.ll_copy)
    LinearLayout llCopy;

    public static Intent createIntent(Context context) {
        return new Intent(context, AccountContactUsActivity.class);
    }

    @Override
    public int setCustomContentViewResourceId() {
        return R.layout.activity_account_contact_us;
    }

    @Override
    public void initParam() {
    }

    @Override
    public void initView() {
        initActionBar(toolbar, tvTitle, "个人设置");
        tvQrcode.setText("234");
    }

    @Override
    public void initOperator() {

    }

    @OnClick({R.id.iv_qrcode, R.id.tv_channel, R.id.ll_copy})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_qrcode:
                break;
            case R.id.tv_channel:
                break;
            case R.id.ll_copy:
                ClipboardUtil.copyText(context, tvQrcode.getText().toString());
                ToastUtil.getInstance().shortLength(context, "复制");
                break;
        }
    }
}
